package defs

import (
	"net/http"
)

type Err struct {
	Error     string `json:"error"`
	ErrorCode string `json:"error_code"`
}

type ErrResponse struct {
	HttpSc int
	Error  Err
}

var (
	ErrorRequestBodyParseFailed = ErrResponse{
		Error: Err{
			Error:     "Request body is not correct",
			ErrorCode: "001",
		},
		HttpSc: http.StatusBadRequest,
	}
)
